<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:a="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich" template="layout/template.xhtml">
	<ui:define name="head">
	  <script type="text/javascript" src="lightbox/prototype.js"></script>
      <script type="text/javascript" src="lightbox/scriptaculous.js?load=effects,builder"></script>
      <script type="text/javascript" src="lightbox/lightbox.js"></script>    
      <link rel="stylesheet" href="lightbox/lightbox.css" type="text/css" media="screen" />
      </ui:define>
    <ui:define name="body">
     <script type="text/javascript">
        function confirmDelete()
        {
          return confirm("Bu resmi silmek istediğinizden emin misiniz?");
        }
      </script>  
      
		<h:form id="liseForm">
 			<rich:panel styleClass="richPanelYukseklik">
				<f:facet name="header">Özgeçmiş Bilgileri</f:facet>
				<h:outputText value="DİĞER BİLGİLER" styleClass="txtBaslik" />
				<s:decorate id="seyahatDurumField" template="layout/display.xhtml">
					<ui:define name="label">Sigara </ui:define>
					<h:selectOneRadio value="#{kullaniciHome.instance.sigara}">
						<f:selectItem id="item1" itemLabel="Kullanıyorum"
							itemValue="false" />
						<f:selectItem id="item2" itemLabel="Kullanmıyorum"
							itemValue="true" />
					</h:selectOneRadio>
				</s:decorate>

				<s:decorate template="layout/edit.xhtml">
					<ui:define name="label">Üyelik  Bilgileri </ui:define>
					<h:inputTextarea value="#{kullaniciHome.instance.bi}" rows="2"
						cols="80" />
				</s:decorate>
				<s:decorate template="layout/edit.xhtml">
					<ui:define name="label">Üyelik  Bilgileri </ui:define>
					<h:inputTextarea value="#{kullaniciHome.instance.bi}" rows="2"
						cols="80" />
				</s:decorate>
				<s:decorate template="layout/edit.xhtml">
					<ui:define name="label">Yakın Dönemdeki Hedefim </ui:define>
					<h:inputTextarea
						value="#{kullaniciHome.instance.calismaHayatYakinHedef}" rows="2"
						cols="80" />
				</s:decorate>
				<s:decorate template="layout/edit.xhtml">
					<ui:define name="label">Uzun Dönemdeki Hedefim </ui:define>
					<h:inputTextarea
						value="#{kullaniciHome.instance.calismaHayatYakinHedef}" rows="2"
						cols="80" />
				</s:decorate>
				<s:decorate template="layout/edit.xhtml">
					<ui:define name="label">Eklemek İstediğim Bilgiler </ui:define>
					<h:inputTextarea value="#{kullaniciHome.instance.ekBilgi}" rows="2"
						cols="80" />
				</s:decorate>
<div style="clear: both">
<strong>Resimlerim</strong>
</div>
 <div class="memberPictures">                    
          <ui:repeat value="#{kullaniciHome.instance.images}" var="img">
            <div class="thumbnail">
              <a href="content/images?id=#{img.imageId}" rel="lightbox[pictureset]" title="#{img.caption}">
                <h:graphicImage value="/content/images?id=#{img.imageId}&amp;width=90" border="0"/>
              </a>
              <s:button styleClass="trash" 
                action="#{pictureSearch.delete(pictureSearch.lookupImage())}"
                rendered="#{s:hasPermission(img, 'delete')}"
                onclick="if (!confirmDelete()) return false">
                <f:param name="imageId" value="#{img.imageId}"/>
              </s:button>
            </div>
              
          </ui:repeat> 
        </div>
        
           <s:decorate id="resimField" template="layout/edit.xhtml">
                <ui:define name="label">Resim Başlığı</ui:define>
                <h:inputText id="acilDurumKisi" required="true" size="100"
                            maxlength="100" value="#{kullaniciHome.kullaniciResmi.caption}"
                            styleClass="adGenislik" >
                            <a:support event="onblur" reRender="resimField"
                                bypassUpdates="true" ajaxSingle="true" />
                        </h:inputText>
            </s:decorate>
              <s:decorate id="resimField" template="layout/edit.xhtml">
              <ui:define name="label">Picture</ui:define>
             
                <s:fileUpload id="picture" data="#{kullaniciHome.kullaniciResmi.data}"
                              contentType="#{pictureAction.memberImage.contentType}" />
              
              </s:decorate>
  
				<div style="clear: both"><span class="required">*</span>
				Zorunlu Alanlar</div>
			</rich:panel>
			     <div class="actionButtons"><h:commandButton id="save"
            value="#{messages.btnKaydetVeDevam}"
             action="#{kullaniciHome.doIK11}" /></div>
		 </h:form>
		 
	</ui:define>
</ui:composition>
